package cn.wolfcode.rbac.service;

import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.query.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void saveOrUpdate(Employee e,int[] ids);
    void delete(Long id);
    PageInfo query(EmployeeQueryObject qo);
    Employee selectOne(Long id);

    Employee selectByInfo(String username, String password);

    Employee selectByName(String name);

    void deleteMany(Long[] ids);

    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;

    List<Employee> selectBySn(String ...sn);
}
